package com.cs.study.homework._0224;

public class Demo3 {
}

class Father {
    int age = 30;

    public int print() {
        System.out.println(age);
        return age;
    }
}

class Son extends Father {
    int age = 10;

    @Override
    public int print() {
        System.out.println(age);
        return this.age;
    }
}